package eiisan.function;

import java.util.StringJoiner;
import java.util.function.Function;

/**
 * @author gragonfly
 * @date 2019/7/27
 **/
public class Test1 {
    public static void main(String[] args) {
        Function<String,String> function = String::toUpperCase;
        System.out.println(function.getClass().getInterfaces()[0]);
        System.out.println(function.apply("aab"));
        StringJoiner stringJoiner = new StringJoiner("_");
        stringJoiner.add("22");
        stringJoiner.add("232");
        System.out.println(stringJoiner.toString());
    }


}
